#coding=utf-8
from django.contrib import admin
from PublicTool.BaseAdmin import UserModelAdmin
import models


__author__ = 'czq'
#class CountryAdmin(UserModelAdmin):
#    fields = ('name','nameEnglish','nameShort',)
#admin.site.register(models.Country,CountryAdmin)

class SystemLogAdmin(UserModelAdmin):
    exclude = ['addUser','site',]
    list_display = ('moduleName','typeName','remark','outId','ip','addUser',)
admin.site.register(models.SystemLog,SystemLogAdmin)

class VisitPermClassAdmin(UserModelAdmin):
    exclude = ['addUser','site',]
    #list_display = ('moduleName','typeName','remark','outId','ip','addUser',)
admin.site.register(models.VisitPermClass,VisitPermClassAdmin)

class VisitPermThemeAdmin(UserModelAdmin):
    exclude = ['addUser','site',]
    #list_display = ('moduleName','typeName','remark','outId','ip','addUser',)
admin.site.register(models.VisitPermTheme,VisitPermThemeAdmin)